<?php

/**
* Machine specific constants file.
*
* Note that this file will typically be very machine/ environment specific, be
* very careful when deploying from one environment to another
* @package PopCap_Config
*/

//Environment Constants
define("ENVIRONMENT", "live");
//define("APPROOT", "/home/popcap/websites/labs/lib/");
define("APPROOT", "/var/www/blitz/labs/lib/");
define("FB_APPKEY", "cca826e5dceb40f888aadf71bd43c853");
define("FB_APPSECRET", "7ca5bf95ecea4e7c9de6d25cb7a6cd98");
define("FB_CANVAS_URL", "http://apps.renren.com/popcapbejeweledblitz/");
define("APPMAINPAGE", "http://app.renren.com/profile/54234/wall");
define("HOST_NAME_LABS", "labs-apac.popcap.com");
//define("HOST_NAME_LABS", "labs.popcap.com.cn");

//blitz db name
define("DB_BLITZ_NAME", "fb_bj2b_new");
//blitz db creds -- score shard
define("DB_READER_HOST_BLITZ", serialize(array("172.30.0.147","172.30.0.147")));
define("DB_WRITER_HOST_BLITZ", "172.30.0.147");
define("DB_WRITER_USER_BLITZ", "renrendb_writer");
define("DB_WRITER_PW_BLITZ", "4GFG42tr");
define("DB_READER_USER_BLITZ", "renrendb_reader");
define("DB_READER_PW_BLITZ", "azE0_nVV");
//blitz db creds for 2nd shard -- achievement shard
define("DB_READER_HOST_BLITZ_V2", serialize(array("172.30.0.147","172.30.0.147")));
define("DB_WRITER_HOST_BLITZ_V2", "172.30.0.147");
define("DB_WRITER_USER_BLITZ_V2", "renrendb_writer");
define("DB_WRITER_PW_BLITZ_V2", "4GFG42tr");
define("DB_READER_USER_BLITZ_V2", "renrendb_reader");
define("DB_READER_PW_BLITZ_V2", "azE0_nVV");

//feed templates
define("TMPL_ID_BEATEN_LIST", "136613255789");
define("TMPL_ID_HIGH_SCORE", "136611170789");
define("TMPL_ID_GAMEPLAY", "1");
//feed form templates
define("TMPL_ID_FF_STAR_MEDAL", "1");
define("TMPL_ID_FF_STAR_MEDAL_INGAME", "1");
define("TMPL_ID_FF_BLITZ_KING", "140284980789");
define("TMPL_ID_FF_LADDER_CLIMBER", "140285410789");
define("TMPL_ID_FF_JEWEL_JABBER", "140720105789");
define("TMPL_ID_FF_INVITE", "212267635789");
define("TMPL_ID_FF_FIRST_TIME","251612515789");

//iphone specific templates
define("IPHONE_TMPL_ID_GAMEPLAY", "226498660789");
define("IPHONE_TMPL_ID_BEATEN_LIST", "0");
define("IPHONE_TMPL_ID_HIGH_SCORE", "228577210789");
define("IPHONE_TMPL_ID_FF_STAR_MEDAL", "263209290789");
define("IPHONE_TMPL_ID_FF_STAR_MEDAL_250K", "263206955789");


//Pull images and similar media from Akamai "http://dl.labs.popcap.com/"
//or local server "http://" . $_SERVER['HTTP_HOST'] . "/"
define("MEDIA_PATH", "http://dl.labs-apac.popcap.com/");
//define("MEDIA_PATH", "http://labs.popcap.com.cn/");

//blitz memcache servers
$memcache_server1 = array("name" => "127.0.0.1", "port" => "11211");
$memcache_server2 = array("name" => "127.0.0.1", "port" => "11211");
define("MEMCACHE_SERVERS_BLITZ", serialize(array($memcache_server1, $memcache_server2)));

define("GAME_CLIENT_ID", "BEJEWELED_BLITZ_WEB");
define("SERVICE_HOST1", "http://svc-app1.test.vte.internal.popcap.com:38080/");
define("SERVICE_HOST2", "http://svc-app2.test.vte.internal.popcap.com:38080/");

?>
